﻿using System.Collections.Generic;

namespace LVYAN.Utils
{
    public class ConfigModel
    {
        /// <summary>
        /// 优先级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 起止小时
        /// </summary>
        public int StartHour { get; set; }

        /// <summary>
        /// 截至小时
        /// </summary>
        public int EndHour { get; set; }
        /// <summary>
        /// 是否打印控制
        /// </summary>
        public bool IsConsole { get; set; }
        /// <summary>
        /// 是否到日志
        /// </summary>
        public bool IsLog { get; set; }
        /// <summary>
        /// APP重启的阈值
        /// </summary>
        public double AppCache { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public List<ConfigCacheModel> CacheList { get; set; }
    }
    public class ConfigCacheModel
    {
        /// <summary>
        /// 方法名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 缓存分钟
        /// </summary>
        public double Cache { get; set; }
    }

    public class ConfigReponseModel
    {
        /// <summary>
        /// 是否到日志
        /// </summary>
        public bool IsLog { get; set; }
        /// <summary>
        /// 是否打印控制
        /// </summary>
        public bool IsConsole { get; set; }
        /// <summary>
        /// 缓存分钟
        /// </summary>
        public double Cache { get; set; }
        /// <summary>
        /// APP重启的阈值
        /// </summary>
        public double AppCache { get; set; }


        
    }


}
